/*
 * Copyright (c) csii.com.cn 2016 zhaojin
 */

package com.csii.ssm.core;

/**
 * Created by zhaojin on 16/2/22.
 */
public class CommonDict {

    //通用key值相关:
    public static final String ERROR_MSG = "errorMsg";
    public static final Integer YINGYUXI_ACTID = 1;

    //end 通用key值相关

    //前台相关key值:
    private static final String encode = "utf-8";
    public static final String HTTP_CONTENT_TYPE_TEXT = "text/plain;charset=" + encode;
    public static final String HTTP_CONTENT_TYPE_JSON = "application/json;";
    public static final String HTTP_CONTENT_TYPE_JSON_UTF = HTTP_CONTENT_TYPE_JSON + "charset=" + encode;
    public static final String GET = "GET";
    //end 前台相关key值


    //规则相关key值
    public static final String TRSDEF = "TrsDef";//交易定义

    //权限相关
    public static final String RULETYPE_PUBLICAUTH = "PublicAuth";
    public static final String SPLIT_FLAG = "\\|";
    public static final String RULEID_AUTH_TRANSCODE_PRIVATE_MER4OPERATOR = "auth.transcode.private.mer4operator";
    public static final String RULEID_AUTH_TRANSCODE_PRIVATE_SYSADMIN = "auth.transcode.public.sysadmin";
    public static final String RULETYPE_PRIVATEAUTH = "PrivateAuth";
    //end 权限相关

    public static final String CLIENT_EXPLOER = "clientExploer";//客户端的浏览器类型标识
    public static final String IE = "IE";
    public static final String CHROME = "CHROME";
    public static final String SAFARI = "SAFARI";
    public static final String OTHER = "OTHER";
    public static final String VIEW_PAIRED_SCRIPT_PATH = "viewPairedScriptPath";
    public static final String STATICRES = "/static";//开发和生产模式的资源目录
    public static final String BUILDRES = "/build";//测试模式的资源目录
    public static final String RESPATH = "resPath";//资源路径key值
    public static final String APP_MODE = "appMode";
    public static final String MODE_DEV = "DEV";
    public static final String MODE_TEST = "TEST";
    public static final String MODE_PRO = "PRO";

    public static final String ACCESS_TOKEN = "accessToken";
    public static final String RESUBMIT_TOKEN = "resubmitToken";

    public static final String AJAXDATA_STATUS_SUCCESS = "0000";
    public static final String AJAXDATA_STATUS_SUCCESS_MSG = "交易成功";
    public static final String AJAXDATA_STATUS_ERROR = "4444";
    public static final String AJAXDATA_STATUS_ERROR_MSG = "交易失败";
    public static final String RES = "res";
    public static final String REMOTE_IP_ADDR = "remoteIpAddr";
    public static final String KEY = "Key";
    public static final String REDIRECT_URL = "redirectUrl";
    public static final String REQ_ACCEPT = "reqAccept";
    public static final String CORSACAO = "Access-Control-Allow-Origin";
    public static final String CORSACAC = "Access-Control-Allow-Credentials";
    public static final String CORSACMA = "Access-Control-Max-Age";
    public static final String CORSACAM = "Access-Control-Allow-Methods";
    public static final String CORSACAH = "Access-Control-Allow-Headers";
    public static final String CURPJNL_ID = "curPjnlId";
}
